package org.fuys.coder.infrastructure.repository;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.fuys.coder.domain.substance.repository.ISubstanceTagRepository;
import org.fuys.coder.infrastructure.dao.SubstanceTagMapper;
import org.fuys.coder.infrastructure.model.po.SubstanceTag;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Collection;

/**
 * @projectName: fuys-low-coder
 * @package: org.fuys.coder.infrastructure.repository
 * @className: ISubstanceTagRepositoryImpl
 * @author: WangJing
 * @description: 内容仓储实现类
 * @date: 2024/7/14 23:14
 * @version: 1.0
 */
@Service
public class SubstanceTagRepositoryImpl extends ServiceImpl<SubstanceTagMapper, SubstanceTag>
        implements ISubstanceTagRepository {

    @Resource
    private SubstanceTagMapper substanceTagMapper;

    @Override
    public void batchInsert(Collection<SubstanceTag> tags) {
        this.saveBatch(tags);
    }
}
